import request from '@/utils/request'

// 查询poct 质控失控列表
export function listOutControl(query) {
  return request({
    url: '/system/outControl/list',
    method: 'get',
    params: query
  })
}

// 查询poct 质控失控详细
export function getOutControl(id) {
  return request({
    url: '/system/outControl/' + id,
    method: 'get'
  })
}

// 新增poct 质控失控
export function addOutControl(data) {
  return request({
    url: '/system/outControl',
    method: 'post',
    data: data
  })
}

// 修改poct 质控失控
export function updateOutControl(data) {
  return request({
    url: '/system/outControl',
    method: 'put',
    data: data
  })
}

// 删除poct 质控失控
export function delOutControl(id) {
  return request({
    url: '/system/outControl/' + id,
    method: 'delete'
  })
}

// 查询poct 质控失控列表
export function queryOutControlList(query) {
  return request({
    url: '/system/outControl/outControlList',
    method: 'post',
    data: query
  })
}
